package pl.edu.utp.kursy.comparators;

import java.util.Comparator;
import pl.edu.utp.kursy.database.CourseEvent;

public class CourseEventComparator implements Comparator<CourseEvent>{

    @Override
    public int compare(CourseEvent o1, CourseEvent o2) {
        return o2.getStartDate().compareTo(o1.getStartDate());
    }
    
}
